package com.kangye.demo.controller;

import com.kangye.demo.pojo.Admin;
import com.kangye.demo.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 卡七
 * @title: AdminController
 * @projectName CaiMinDemo
 * @description: TODO
 * @date 2021/9/149:31
 */
@RestController
public class AdminController {

    @Autowired
    private AdminService adminService;

    @RequestMapping("getLogin.action")
    private String getLogin(Admin admin){
        Admin list = adminService.getList(admin);
        System.out.println(list);

        return list != null ? "200" : "400";
    }
}
